package org.example.mybatis3.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.mybatis3.entity.User;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserXmlMapper {
    List<User> findAll();

    User findById(Long id);

    User findByIdWithResultMapConstructor(Long id);

    Map<String, Object> findByIdWithMap(Long id);

    User findByIdWithPojo(Long id);

    int insert(User user);

    int update(User user);

    int deleteById(Long id);
}
